import tensorflow as tf
tf.keras.backend.set_learning_phase(0)
model = tf.keras.models.load_model("F:\Resources\model\mobilevnet2.h5")
export_path = r'F:\Resources\model\mobile'
with tf.keras.backend.get_session() as sess:
    tf.saved_model.simple_save(
        sess,export_path,
        inputs={"input_image":model.input},
        outputs={t.name:t for t in model.outputs}
    )